﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Baran : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void BtnAddRole_Click(object sender, EventArgs e)
    {
        Roles.CreateRole(TxRole.Text);
        
    }
    protected void BtAddUser_Click(object sender, EventArgs e)
    {
        Membership.CreateUser(TxUser.Text, "123456");
        Roles.AddUserToRole(TxUser.Text, "admin");
    }
}